package ru.sgu.acm.dao;

/**
 * Interface for extracting source code od the submit.
 *
 * @author Vitaly Goldshteyn (VitalyGoldstein@gmail.com)
 */
public interface SubmitSourceDao {
    /**
     * Return source code of Submit by id as String
     * @param  id of Submit
     * @return source code
     */
    String getSource(long id);

    /**
     * Put source of submit by id
     * @param id of Submit
     * @param source code of submit
     */
    void putSource(long id, String source);
}
